package com.york.dao;

public class ProxyClient {
    public static void main(String[] args) {
//真实业务
        ProxyServiceImpl userService = new  ProxyServiceImpl();
//代理类
        ProxyServiceProxy proxy = new  ProxyServiceProxy();
//使用代理类实现日志功能！
        proxy.setUserService(userService);
        proxy.add();
    }
}
